package javaRew;

/**
 * Created by xjweng on 2017/1/31.
 */
public class TestObject {
    //Object类是所有类根父类
    public void method(Object obj){

    }
    public static void main(String []args){
        int i = 10;
        Integer j = 10; //基本数据类型对应的封装类类型，自动装箱（自动转化为基本数据类型）
        Customer cust1 = new Customer("First","first@baidu.com");
        Customer cust2 = new Customer("First","first@baidu.com");
        System.out.println(cust1.equals(cust2));

        TestObject to = new TestObject();
        to.method(new Person2());
        to.method(new TestPerson2());
    }
}
